<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.merchname {display:none}
.jylabel-red.active,.jylabel-red:focus,.jylabel-red:hover,.jylabel-red[href]:focus,.jylabel-red[href]:hover {
	background-color:#4fcb3b;color:#fff;
}
.jylabel-red.active,.jylabel-red:focus,.jylabel-red:hover,.jylabel-red[href]:focus,.jylabel-red[href]:hover {
	background-color:#4fcb3b;
	color:#fff;
	border: 1px solid #fff;
}
.fui-goods-item .detail .price .text {
    color: #4fcb3b;
}
.fui-tab-scroll .item a {color:#fff;font-weight:400}
.fui-tab-scroll .item.on,.fui-tab-scroll .item.on a{color:#fff;}
.fui-tab-scroll .item.on:before {background:linear-gradient(to right,rgba(255,255,255,1),rgba(255,255,255,0));}
.fui-goods-group .vote-number{
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    overflow: hidden;
    padding: 0 10px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-left-radius: 5px;
    height: 25px;
    line-height: 25px;
    background-color: #000;
    background-color: rgba(0,0,0,0.5);
    color: #FFF;
    text-align: center;
    font-size: 12px;
}
</style>
<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<div class="fui-page fui-page-current page-goods-list">
<div class='fui-content' style="top:0">
	<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
		<div class="carousel-inner" role="listbox" style="height:auto">
			<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.pluginset.hdps">
				<a href="#">
					<img ng-src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
				</a>
			</div>
		</div>
		<style>
				.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
				.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
		</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 0.3rem; ">
					<div class="fui-swipe-bullet" ng-repeat="item in pagedata.pluginset.hdps" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
	<div ng-if="pagedata.groups.length>0" class="fui-icon-group noborder col-4 radius" style="background: #ffffff">
			<a class="fui-icon-col external" ng-repeat="classify in pagedata.groups" href="javascript:;" ng-click="access_json('jy_zhongchou/c_detail/main/id='+classify.id)" data-nocache="true">
					<div class="icon"><img ng-src="{{tomedia(classify.classify_logo) || '../core/resource/images/nopic.jpg'}}"></div>
					<div class="text" style="color: #666666;">{{classify.title}}</div>
			</a>
		</div>
		<div class="swiper swiper-3" data-view="5" data-btn="true">
            <link href="../core/resource/components/swiper/swiper.min.css" rel="stylesheet" type="text/css">
            <div class="swiper-container fui-picturew" style="padding: 3px 3px; overflow-x: scroll;">
                <div class="swiper-wrapper">
                        <a ng-repeat="item in pagedata.plisthot" class="swiper-slide item" style="margin: 5px;width:150px;background:#fff" href="javascript:;" ng-click="access_json('jy_zhongchou/p_detail/main/id='+item.id)">
							<div class="image" style="width:100%;height:80px;background:url('{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}') no-repeat 50%;background-size: cover;">
								<div class="vote-number" style="background-color:#0099FF">{{item.classify.title || '未分类'}}</div>
							</div>
                            <div class="text2" style="font-size:0.5rem;margin-bottom:10px;height:1.5rem">{{item.title}}</div>
							<div class="progress" style="margin:5px 3px;height:0.2rem;border-radius:0.05rem;">
								<div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="width: {{item.progress || 1}}%;background-color:#3ae0ab;"><span class="sr-only">60% Complete</span></div>
							</div>
							<div class="text" style="font-size:0.7rem;color:#F60;margin-bottom:0.5rem">已筹{{item.getmoney}}元</div>
                        </a>
                </div>
            </div>
        </div>
	<div style="padding:0.3rem 0.5rem">
		<div ng-if="pagedata.params.pid==0" class="content-group">
		<div class="fui-list-group merchgroup" style="margin-top:0">
				<div class="fui-list jump">
					<div class="fui-list-media">
						<img class="round" style="border-radius: 50%;" ng-src="{{tomedia(pagedata.pluginset.storelogo) || '../addons/jy_weishopfarmer/resource/images/storelogo.jpg'}}">
					</div>
					<div class="fui-list-inner" style="border-right: 2px solid #efefef;">
						<div class="title">{{pagedata.store.title}}{{pagedata.pluginset.title || '公益众筹商城'}}</div>
						<div class="subtitle">{{pagedata.pluginset.desc || '在线众筹，公益看得见'}}</div>
					</div>
				   <div class="fui-list-media" style="width:6rem;text-align:center;padding-left:0.3rem;margin-right:0">
						<div class="fui-list-inner">
							<div class="num bold" style="font-size:0.8rem;color:#31bdbc">{{pagedata.store.members || '0'}}</div>
							<div class="subtitle">公益人数</div>
					   </div>
					   <div class="fui-list-inner">
							<div class="num bold" style="font-size:0.8rem;color:#da7b5f">{{pagedata.store.salenum || '0'}}</div>
							<div class="subtitle">众筹指数</div>
					   </div>
				   </div>
				</div>   
		</div>
		</div>
		<div class="content-group">
			<div class="fui-searchbar bar" style="z-index: 0;">
				<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:#fff">
						<div style="position: relative;left:0;top:0;">
							<div class="search-input" style="">
								<i id="searchsub" class="icon icon-sousuo1"  ng-click="tool.get_list('jy_weishop/goods.index/getlist/',true)"></i>
								<input type="search" placeholder="搜索商品" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.6rem;background:#f9f9f9;border-radius: 1rem;" />
							</div>
						</div>
				</div>
			</div>
		</div>
		<div ng-include="sys_html('shop/_goods_you','','','jy_weishop')"></div>
	</div>
</div>
</div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_menu','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_footer','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_coupon',true)"></div>
<div ng-include="sys_html('common/_h5game',true)"></div>
<div ng-include="sys_html('common/_gotop',true)"></div>
<script>
scope.pagedata.getarea=function(pcd){
	scope.post_json('jy_weishopfarmer/index/getarea/',{'pcd':pcd},function(res){
					//console.log(res)
					scope.sharedata.title = res.sharedata.title
					scope.sharedata.link = res.sharedata.link
					scope.sharedata.desc = res.sharedata.desc
					scope.sharedata.imgUrl = res.sharedata.imgUrl
					scope.pagedata.store =res.store;
					scope.tool.get_list('jy_weishop/goods.index/getlist/',true);
					scope.$evalAsync();	
				
	});
}
if((!scope.pagedata.pcd && !scope.pagedata.pcd.city) || !scope.pagedata.area_code){
	window.scope.location(function(re){
		//scope.message(re.addressComponents.district,'error');
		scope.pagedata.getarea(re.addressComponents);
		console.log(re.addressComponents);
	});
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>